//
//  HMDiscoveryViewController.swift
//  Weibo
//
//  Created by 李学林 on 15/12/5.
//  Copyright © 2015年 tete. All rights reserved.
//

import UIKit

class HMDiscoveryViewController: HMVisitorController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !userLogin {
            visitorView?.setVisitorInfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
        
        setupUI()
    }

    private func setupUI(){
    
        let searchView = HMDiscoverySearchView.searchView()
        
        searchView.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, 35)
        
        navigationItem.titleView = searchView
        
        tabBarItem.badgeValue = "12"
        
    }

}
